package com.cruise.common.core.constant;

/**
 * @author ：Cruise
 * @version ：1.0
 * @Calss ：BasePage
 * @Description ：@Data 注解无法获取默认值
 * @date ：2021/4/21 下午4:28
 **/

public class BasePage {

    private Integer current;

    private Integer size;

    public Integer getCurrent() {
        return current == 0 ? SystemConstants.DEFAULT_CURRENT :current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getSize() {
        return size == 0 ? SystemConstants.DEFAULT_SIZE : size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
}
